import request from '@/utils/request'

// 查询答题卡列表
export function listExamresult(query) {
  return request({
    url: '/house_sale/examresult/list',
    method: 'get',
    params: query
  })
}

// 查询答题卡详细
export function getExamresult(resultid) {
  return request({
    url: '/house_sale/examresult/' + resultid,
    method: 'get'
  })
}

// 新增答题卡
export function addExamresult(data) {
  return request({
    url: '/house_sale/examresult',
    method: 'post',
    data: data
  })
}

// 修改答题卡
export function updateExamresult(data) {
  return request({
    url: '/house_sale/examresult',
    method: 'put',
    data: data
  })
}

// 删除答题卡
export function delExamresult(resultid) {
  return request({
    url: '/house_sale/examresult/' + resultid,
    method: 'delete'
  })
}
